package models.venue.policy;

import models.BaseModel;
import models.venue.enums.WeekType;

import javax.persistence.*;

/**
 * 场地策略对应星期
 * Created by hanbin on 17/4/5.
 */
@Entity
@Table(name="policy_weeks")
public class PolicyWeek  extends BaseModel {

    /**
     * 场地策略id
     */
    @JoinColumn(name="policy_id")
    @ManyToOne
    public Policy fieldPolicy;

    /**
     * 策略星期
     */
    @Enumerated(EnumType.STRING)
    @Column(name="week_type", length = 60)
    public WeekType weekType;

}
